package org.lq.sm.test;

import java.applet.Applet;
import java.applet.AudioClip;
import java.io.File;
import java.net.MalformedURLException;

import org.lq.sm.util.ConverToChinesePart;
import org.lq.sm.util.VoicePlay;

public class VoiceDemo {

	public static void main(String[] args) {
		
//		try {
//			AudioClip aau = Applet.newAudioClip(new File("D:\\一店通店面收银系统\\MEDIA\\RMB.WAV").toURL());
//			aau.play();//音频播放
//		} catch (MalformedURLException e) {
//			e.printStackTrace();
//		}
//		
//		try {
//			Thread.sleep(1000);
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
		
//		double price = 123456789.66;
//		ConverToChinesePart ctc = new ConverToChinesePart(price);
//		String price_chinese  = ctc.convertToChinese();
//		String dir = System.getProperty("user.dir");
//		VoicePlay.play(dir+"\\MEDIA\\RMB.wav");
//		for (int i = 0; i < price_chinese.length(); i++) {
//			VoicePlay.play(dir+"\\MEDIA\\"+price_chinese.charAt(i)+".wav");
//			System.out.println(price_chinese.charAt(i));
//		}
		
	}

}
